package cn.bestick.weightrecord.util;

import cn.bestick.weightrecord.model.User;

import java.util.ArrayList;
import java.util.List;

/**
 * Created by IntelliJ IDEA.
 * User: Bestick
 * Date: 2016/7/9
 * Time: 21:57
 * Url: http://www.bestick.cn
 * Copyright © 2015-2016 Bestick All rights reserved
 * -----------------------------------------------------------
 * 会当凌绝顶，一览众山小。
 */
public class StatisticUtil {

    /**
     * 在线用户List
     */
    private static List<User> onLineUserList;

    private StatisticUtil(){}

    /**
     * 获取在线用户List（单例）
     * @return List<User>
     */
    public static List<User> getOnLineUsersInstance() {
        if (onLineUserList == null) {
            onLineUserList = new ArrayList<>();
        }
        return onLineUserList;
    }
}
